/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.coreprincipals.inheritance.conf;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.ac.cput.coreprincipals.inheritance.inheritance.Creatures;
import za.ac.cput.coreprincipals.inheritance.inheritance.impl.CatImpl;
import za.ac.cput.coreprincipals.inheritance.inheritance.impl.DogImpl;

/**
 *
 * @author 210227257
 */
@Configurable
public class AppConfig {
    @Bean(name = "cat")
    public Creatures cat(){
        return new CatImpl("null");
    }
    
    @Bean(name = "dog")
    public Creatures dog(){
        return new DogImpl("null");
    }
}
